package com.yss.job.task;


import com.yss.common.core.constant.SecurityConstants;
import com.yss.common.core.domain.YssResponse;
import com.yss.reportworld.api.RemoteCustomerService;
import com.yss.reportworld.api.RemoteDatabaseService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 报表世界模块的定时任务
 */
@Component("reportWorldTask")
@Slf4j
public class ReportWorldTask {
    @Autowired
    private RemoteDatabaseService remoteDatabaseService;
    @Autowired
    private RemoteCustomerService remoteCustomerService;

    public void queryCheckDataBaseInfoAll() {
        YssResponse<String> response = remoteDatabaseService.queryCheckDataBaseInfoAll(SecurityConstants.INNER);
        log.info(response.getMsg());
    }

    public void queryLicenseDueTime() {
        YssResponse<String> response = remoteCustomerService.queryLicenseDueTime(SecurityConstants.INNER);
        log.info(response.getMsg());
    }
}
